package com.yayun.merchant.domain;

import com.yayun.common.annotation.Excel;
import com.yayun.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 会员收货地址对象 ums_member_address
 *
 * @author yayun
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class UmsMemberAddress extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 地址ID */
    private Long id;

    /** 用户ID */
    private Long userId;

    /** 收货人姓名 */
    @Excel(name = "收货人姓名")
    private String name;

    /** 收货人电话 */
    @Excel(name = "收货人电话")
    private String phone;

    /** 收货人手机号密文 */
    private String phoneEncrypted;

    /** 邮政编码 */
    @Excel(name = "邮政编码")
    private String postCode;

    /** 省份/直辖市 */
    @Excel(name = "省份/直辖市")
    private String province;

    /** 城市 */
    @Excel(name = "城市")
    private String city;

    /** 区 */
    @Excel(name = "区")
    private String district;

    /** 省份/直辖市id */
    private Long provinceId;

    /** 城市id */
    private Long cityId;

    /** 区id */
    private Long districtId;

    /** 详细地址 */
    @Excel(name = "详细地址")
    private String detailAddress;

    /** 是否为默认地址：0->否；1->是 */
    @Excel(name = "是否为默认地址", readConverterExp = "0=否,1=是")
    private Integer isDefault;

    /** 状态：0->禁用；1->启用 */
    @Excel(name = "状态", readConverterExp = "0=禁用,1=启用")
    private Integer status;
} 